package Brid;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import java.util.List;

@Component("BridList")
@Scope("prototype")
public class BridList {
    @Autowired
    List<Brid> BridList;

    public void fly(){
        for (Brid b:this.BridList
             ) {
            b.tofly();
        }
    }

}
